package truef.favoriteshop.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_ADMIN_SHOP")
@Entity
public class Shop extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6164860772411092286L;

	@ManyToOne
	@JoinColumn(name = "FAVORITE_ID")
	Favorite favorite;
	
	@Column(name = "shopName")
	private String shopName;
	@Column(name = "url")
	private String url = "null";
	public void setShopName(String name) {
		shopName = name;
	}
	public String getShopName() {
		return shopName;
	}
	public String getUrl() {
		return url;
	}
	private void setUrl(String u) {
		url = u;
	}
}
